CPS Translations and Applications: The Cube and Beyond
نویسندگان
چکیده
Continuation passing style (CPS) translations of typed -calculi numerous applications. However, the range of these applications is con ned by the fact that CPS translations are known for nondependent type systems only, thus excluding well-known systems like the calculus of constructions (CC) and the logical frameworks (LF). This paper presents techniques for CPS translating systems with dependent types. In the rst part of the paper we review several lines of work in which the need for CPS translations of dependent type systems has arisen, and discuss the di culties involved with CPS translating such systems. One way of overcoming these di culties is to work with so-called domain-free type systems. Thus, instead of Barendregt's -cube we shall consider the domain-free -cube, and instead of traditional pure type systems, we shall consider domain-free pure type systems. We therefore begin the second part by reviewing the domain-free -cube, which includes domainfree versions of CC and LF, and then present CPS translations of the systems of the domain-free -cube. Direct style (DS) (i.e., inverse CPS) translations have been used in a number of applications, but have been formulated for untyped and simply-typed languages only. We introduce DS translations for all the systems of the domain-free -cube. The CPS translations are then generalized further to a certain class of domain-free pure type systems which includes all the systems of the domain-free -cube as well as domain-free versions of many the non-dependent logical systems of Coquand and Herbelin. Many translations that appear in the literature arise as special cases of our translation. In the third part of the paper we present two approaches to CPS translations of traditional pure type systems. The rst, indirect, technique uses some results that relate derivations in domain-free and traditional pure type systems to modify the above mentioned translation of domain-free pure type systems to the analogous class of traditional pure type systems, thus including Barendregt's -cube and many of the non-dependent logical pure type systems of Coquand and Herbelin. The second, direct, approach translates traditional pure type systems, requiring a certain order to be well-founded. The technique works for Barendregt's -cube, but requires rather strong means.
منابع مشابه
An induction principle for pure type systems
We present an induction principle for Pure Type Systems and use that principle to deene CPS translations and to solve partially the|open| problem of Expansion Postponement. Our principle strengthens and generalises similar principles by Dowek, Huet and Werner 12] and Barthe, Hatclii and SSrensen 5], which have been respectively used to deene-long normal forms and CPS translations for the system...
متن کاملMultidimensional Sensor Data Analysis in Cyber-Physical System: An Atypical Cube Approach
A Cyber-Physical System (CPS) is an integration of distributed sensor networks with computational devices. CPS claims many promising applications, such as traffic observation, battlefield surveillance, and sensor-network-based monitoring. One important topic in CPS research is about the atypical event analysis, i.e., retrieving the events from massive sensor data and analyzing them with spatial...
متن کاملRedox-Active Metal-Organic Nanostructure Polymers and Their Remarkable Electrochemical Behavior
A number of redox-active coordination polymers (CPs) or metal- organic frameworks (MOFs) have been successfully synthesized using transition metals and bridging ligands. This article aims to deal with gathering the aforementioned disperse issues regarding the electroactive CPs. It also goes towards illustrating the effects of various factors on the electrochemical behavior of CPs including...
متن کاملBeyond the mouse: Understanding user gestures for manipulating 3D objects from touchscreen inputs
Multi-touch interfaces have emerged with the widespread use of smartphones. Although a lot of people interact with 2D applications through touchscreens, interaction with 3D applications remains little explored. Most 3D object manipulation techniques have been created by designers who have generally put users aside from the design creation process. We conducted a user study to better understand ...
متن کاملCPS Translating Inductive and Coinductive Types [Extended Abstract]
We investigate CPS translatability of typed al uli with indu tive and oindu tive types. We show that tenable Plotkin-style all-by-name CPS translations exist for simply typed al uli with a natural number type and stream types and, more generally, with arbitrary positive indu tive and oindu tive types. These translations also work in the presen e of ontrol operators and generalize for dependentl...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
- Higher-Order and Symbolic Computation
دوره 12 شماره
صفحات -
تاریخ انتشار 1999